import request from '/@/utils/request'

// 供应商酒店管理
const apiText = 'supplier_hotel'

// 查
export function getSupplierHotelApi(params: any) {
  return request({
    url: `/api/${apiText}/list`,
    method: 'get',
    params,
  })
}

// 增
export function addSupplierHotelApi(data: any) {
  return request({
    url: `/api/${apiText}/create`,
    method: 'post',
    data,
  })
}

// 改
export function editSupplierHotelApi(data: any) {
  return request({
    url: `/api/${apiText}/update/${data.id}`,
    method: 'put',
    data,
  })
}

// 删
export function delSupplierHotelApi(id: any) {
  return request({
    url: `/api/${apiText}/delete/${id}`,
    method: 'delete',
  })
}
